wget --timeout=3 --tries=3 -e "https_proxy=http://127.0.0.1:7890" -P ~/Downloads https://raw.githubusercontent.com/ineo6/hosts/refs/heads/master/hosts

# 删除/etc/hosts文件第10行以后的所有内容
sudo sed -i '10,$d' /etc/hosts

# 将~/Downloads/hosts的内容追加到/etc/hosts文件里
sudo sh -c 'cat /home/wj/Downloads/hosts >> /etc/hosts'


sudo systemctl restart systemd-resolved
